package com.his.registration.service.impl;

import com.his.registration.mapper.UserMapper;
import com.his.registration.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.service
 * @Author: ZhangYing
 * @Date: 2023/7/7 14:06
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int verify(String username, String password) {
        return userMapper.verify(username,password);
    }

    @Override
    public int insert(String username, String password) {
        return userMapper.insert(username,password);
    }

    @Override
    public int update(String username, String password) {
        return userMapper.update(username,password);
    }

    @Override
    public int selectByUsername(String username) {
        return userMapper.selectByUsername(username);
    }
}
